import ajax from "./ajax"
/**
 * 
 AUrl 获取楼栋号
 FURL获取楼层号
 RUrl 获取宿舍ID
 */
const ReserveAMUrl = "http://120.25.151.122/getReserveAM"
export default{
	async getRoomInfo(url,architectureId="",floorId ="",roomId=""){
	    const result =  await ajax(url+`?areaId=1&architectureId=${architectureId}&floorId=${floorId}&roomId=${roomId}`,
		"GET","","",{});
		
		return result.data
	},
	async getPRate(roomId){
		const result =  await ajax(ReserveAMUrl,"GET",{
			roomId
		}," ");
		return result.data
	},
	AUrl : "http://120.25.151.122/getArchitectures"
	,
	FUrl : "http://120.25.151.122/getFloors"
	,
	RUrl :"http://120.25.151.122/getRooms"
}